package com.gosophia.commons.ws;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/***
 * 
 * 定义一个普通的javaBean，用来在适配器中接受map[]类型转换过来的数据
 * @author zhao_yanfang
 *
 */
@XmlType(name = "MapPair")
@XmlAccessorType(XmlAccessType.FIELD)
public class MapPair<K, V> implements Serializable {

	private static final long serialVersionUID = 1L;
	private MapXMLHolder<K, V>[] result;
	/**
	 * 分页信息
	 */
	protected int pageNo = 1;
	protected int pageSize = 1;
	protected long totalCount = -1;

	public MapXMLHolder<K, V>[] getResult() {
		return result;
	}

	public void setResult(MapXMLHolder<K, V>[] result) {
		this.result = result;
	}

	/**
	 * @return the pageNo
	 */
	public int getPageNo() {
		return pageNo;
	}

	/**
	 * @param pageNo
	 *            the pageNo to set
	 */
	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}

	/**
	 * @return the pageSize
	 */
	public int getPageSize() {
		return pageSize;
	}

	/**
	 * @param pageSize
	 *            the pageSize to set
	 */
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	/**
	 * 取得总记录数, 默认值为-1.
	 */
	public long getTotalCount() {
		return totalCount;
	}

	/**
	 * 设置总记录数.
	 */
	public void setTotalCount(final long totalCount) {
		this.totalCount = totalCount;
	}

}
